/* LinkMate 应用样式 */

.App {
  text-align: left;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* 深色主题样式 */
.dark-theme {
  background-color: #000000;
  color: #ffffff;
}

.dark-theme .ant-layout {
  background-color: #000000;
}

.dark-theme .ant-layout-content {
  background-color: #000000;
}

/* 主题切换动画 */
.theme-transition {
  transition: all 0.3s ease;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 深色主题滚动条 */
.dark-theme ::-webkit-scrollbar-track {
  background: #1f1f1f;
}

.dark-theme ::-webkit-scrollbar-thumb {
  background: #404040;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .App {
    padding: 0;
  }
}

/* 加载动画 */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dark-theme .card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .card-shadow:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 按钮样式增强 */
.ant-btn {
  transition: all 0.3s ease;
}

.ant-btn:hover {
  transform: translateY(-1px);
}

/* 输入框焦点效果 */
.ant-input:focus,
.ant-input-focused {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 深色主题输入框 */
.dark-theme .ant-input:focus,
.dark-theme .ant-input-focused {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.3);
}

/* 模态框样式 */
.ant-modal-content {
  border-radius: 12px;
}

.ant-modal-header {
  border-radius: 12px 12px 0 0;
}

/* 深色主题模态框 */
.dark-theme .ant-modal-content {
  background-color: #141414;
}

.dark-theme .ant-modal-header {
  background-color: #141414;
  border-bottom-color: #303030;
}

/* 表格样式 */
.ant-table {
  border-radius: 8px;
  overflow: hidden;
}

.ant-table-thead > tr > th {
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.dark-theme .ant-table-thead > tr > th {
  background-color: #1f1f1f;
  border-bottom-color: #303030;
}

/* 标签页样式 */
.ant-tabs-tab {
  transition: all 0.3s ease;
}

.ant-tabs-tab:hover {
  color: #1890ff;
}

/* 深色主题标签页 */
.dark-theme .ant-tabs-tab:hover {
  color: #40a9ff;
}

/* 工具提示样式 */
.ant-tooltip-inner {
  border-radius: 6px;
}

/* 深色主题工具提示 */
.dark-theme .ant-tooltip-inner {
  background-color: #262626;
}

/* 消息提示样式 */
.ant-message {
  z-index: 9999;
}

/* 深色主题消息提示 */
.dark-theme .ant-message-notice-content {
  background-color: #262626;
  border: 1px solid #404040;
}

/* 通知样式 */
.ant-notification {
  z-index: 9999;
}

/* 深色主题通知 */
.dark-theme .ant-notification-notice {
  background-color: #262626;
  border: 1px solid #404040;
}

/* 选择器样式 */
.ant-select-dropdown {
  border-radius: 8px;
}

/* 深色主题选择器 */
.dark-theme .ant-select-dropdown {
  background-color: #141414;
  border: 1px solid #303030;
}

/* 日期选择器样式 */
.ant-picker-dropdown {
  border-radius: 8px;
}

/* 深色主题日期选择器 */
.dark-theme .ant-picker-dropdown {
  background-color: #141414;
  border: 1px solid #303030;
}

/* 抽屉样式 */
.ant-drawer-content {
  border-radius: 12px 0 0 12px;
}

/* 深色主题抽屉 */
.dark-theme .ant-drawer-content {
  background-color: #141414;
}

/* 分页样式 */
.ant-pagination {
  text-align: center;
  margin-top: 16px;
}

/* 深色主题分页 */
.dark-theme .ant-pagination-item {
  background-color: #1f1f1f;
  border-color: #303030;
}

.dark-theme .ant-pagination-item:hover {
  border-color: #1890ff;
}

.dark-theme .ant-pagination-item-active {
  background-color: #1890ff;
  border-color: #1890ff;
}

/* 步骤条样式 */
.ant-steps-item-process .ant-steps-item-icon {
  background-color: #1890ff;
  border-color: #1890ff;
}

/* 深色主题步骤条 */
.dark-theme .ant-steps-item-process .ant-steps-item-icon {
  background-color: #1890ff;
  border-color: #1890ff;
}

/* 进度条样式 */
.ant-progress-bg {
  background-color: #1890ff;
}

/* 深色主题进度条 */
.dark-theme .ant-progress-bg {
  background-color: #1890ff;
}

/* 徽章样式 */
.ant-badge-count {
  background-color: #ff4d4f;
}

/* 深色主题徽章 */
.dark-theme .ant-badge-count {
  background-color: #ff4d4f;
}

/* 头像样式 */
.ant-avatar {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 深色主题头像 */
.dark-theme .ant-avatar {
  border-color: #303030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 空状态样式 */
.ant-empty-description {
  color: #999;
}

/* 深色主题空状态 */
.dark-theme .ant-empty-description {
  color: #666;
}

/* 骨架屏样式 */
.ant-skeleton-content .ant-skeleton-title,
.ant-skeleton-content .ant-skeleton-paragraph > li {
  background-color: #f2f2f2;
}

/* 深色主题骨架屏 */
.dark-theme .ant-skeleton-content .ant-skeleton-title,
.dark-theme .ant-skeleton-content .ant-skeleton-paragraph > li {
  background-color: #2f2f2f;
}

/* 锚点样式 */
.ant-anchor-link {
  color: #666;
}

/* 深色主题锚点 */
.dark-theme .ant-anchor-link {
  color: #999;
}

/* 回到顶部样式 */
.ant-back-top {
  right: 24px;
  bottom: 24px;
}

/* 深色主题回到顶部 */
.dark-theme .ant-back-top {
  background-color: #1890ff;
}

/* 全局动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* 深色主题特殊效果 */
.dark-theme .fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* 响应式断点 */
@media (max-width: 1200px) {
  .App {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .App {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .App {
    padding: 8px;
  }
}